<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('jingfeipici列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>拨款批次名称：</label>
                                <input type="text" name="picimingcheng"/>
                            </li>
                            <li>
                                <label>实发人数：</label>
                                <input type="text" name="shifarenshu"/>
                            </li>
                            <li>
                                <label>实发金额：</label>
                                <input type="text" name="shifajine"/>
                            </li>
                            <li>
                                <label>补发金额：</label>
                                <input type="text" name="bufajine"/>
                            </li>
                            <li>
                                <label>计发年月-开始年：</label>
                                <input type="text" name="kaishinian"/>
                            </li>
                            <li>
                                <label>计发年月-开始月：</label>
                                <input type="text" name="kaishiyue"/>
                            </li>
                            <li>
                                <label>计发年月-结束年：</label>
                                <input type="text" name="jieshunian"/>
                            </li>
                            <li>
                                <label>计发年月-结束月：</label>
                                <input type="text" name="jieshuyue"/>
                            </li>
                            <li>
                                <label>本批次拨款专家变动信息申报截止时间：</label>
                                <input type="text" class="time-input" placeholder="请选择本批次拨款专家变动信息申报截止时间" name="jiezhishijian"/>
                            </li>
                            <li>
                                <label>发放时间：</label>
                                <input type="text" class="time-input" placeholder="请选择发放时间" name="fafangshijian"/>
                            </li>
                            <li>
                                <label>是否计算：</label>
                                <input type="text" name="isjisuan"/>
                            </li>
                            <li>
                                <label>是否发放：</label>
                                <input type="text" name="isfafang"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu1"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu2"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu3"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu4"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu5"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu6"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu7"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu8"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu9"/>
                            </li>
                            <li>
                                <label>：</label>
                                <input type="text" name="beizhu10"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:jingfeipici:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:jingfeipici:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:jingfeipici:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:jingfeipici:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:jingfeipici:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:jingfeipici:remove')}]];
        var prefix = ctx + "system/jingfeipici";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "jingfeipici",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'jingfeipiciid',
                    title: '经费批次代码',
                    visible: false
                },
                {
                    field: 'picimingcheng',
                    title: '拨款批次名称'
                },
                {
                    field: 'shifarenshu',
                    title: '实发人数'
                },
                {
                    field: 'shifajine',
                    title: '实发金额'
                },
                {
                    field: 'bufajine',
                    title: '补发金额'
                },
                {
                    field: 'kaishinian',
                    title: '计发年月-开始年'
                },
                {
                    field: 'kaishiyue',
                    title: '计发年月-开始月'
                },
                {
                    field: 'jieshunian',
                    title: '计发年月-结束年'
                },
                {
                    field: 'jieshuyue',
                    title: '计发年月-结束月'
                },
                {
                    field: 'jiezhishijian',
                    title: '本批次拨款专家变动信息申报截止时间'
                },
                {
                    field: 'fafangshijian',
                    title: '发放时间'
                },
                {
                    field: 'isjisuan',
                    title: '是否计算'
                },
                {
                    field: 'isfafang',
                    title: '是否发放'
                },
                {
                    field: 'beizhu1',
                    title: ''
                },
                {
                    field: 'beizhu2',
                    title: ''
                },
                {
                    field: 'beizhu3',
                    title: ''
                },
                {
                    field: 'beizhu4',
                    title: ''
                },
                {
                    field: 'beizhu5',
                    title: ''
                },
                {
                    field: 'beizhu6',
                    title: ''
                },
                {
                    field: 'beizhu7',
                    title: ''
                },
                {
                    field: 'beizhu8',
                    title: ''
                },
                {
                    field: 'beizhu9',
                    title: ''
                },
                {
                    field: 'beizhu10',
                    title: ''
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.jingfeipiciid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.jingfeipiciid + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>